libmytest.so:mymath.o myprint.o
	gcc -shared  mymath.o myprint.o -o libmytest.so
myprint.o:myprint.c
	gcc -fPIC -c myprint.c -o myprint.o
mymath.o:mymath.c
	gcc -fPIC -c mymath.c -o mymath.o

.PHONY:pack
pack:
	mkdir -p pack/lib
	mkdir -p pack/include
	cp *.so -rf pack/lib
	cp *.h -rf pack/include

.PHONY:clean
clean:
	rm -rf *.o 
	rm -rf *.so
	rm -rf pack
